package com.zrfintech.api.vo;


import com.alibaba.fastjson.JSONObject;
import com.zrfintech.common.enums.RestRetCodeEnum;
import lombok.Data;

@Data
public class ApiResponseVo {
    private int status;
    private String msg;
    private Object data;
    private String requestId;

    public ApiResponseVo(int status, String msg, Object data, String requestId) {
        this.status = status;
        this.msg = msg;
        this.data = data;
        this.requestId = requestId;
    }

    public ApiResponseVo() {
    }

    public ApiResponseVo(RestRetCodeEnum retCodeEnum,String msg) {
        this.status = retCodeEnum.getValue();
        this.msg = msg;
        this.data = new JSONObject();
        this.requestId = "";
    }
}
